package org.redmap.model
{
	public class RoundRect implements IGeometricShape {
		
		public var myWidth:Number;
		public var myHeight:Number;
		
		public function RoundRect(myWidth:Number=50, myHeight:Number=20){
			this.myWidth = myWidth;
			this.myHeight = myHeight;
		}
		
		public function getArea():Number {
		    // the formula is a * b
		    return myWidth*myHeight;
		}
		
		public function describe():String {
            var desc:String = "This shape is a RoundRect.\n";
            desc += "Its width is " + myWidth + " pixels.\n";
            desc += "Its height is " + myHeight + " pixels.\n";
            desc += "Its area is " + getArea() + ".\n";
            return desc;
		}

	}
}